package com.study.strategy;

import org.springframework.stereotype.Component;

/**
 * @Author tanglingyu
 * @Date: 2021/05/07/ 18:46
 * @Description
 */
@Component
public class Cat implements Animal {

  @Override
  public void eat() {
    System.out.println("cat");
  }

  @Override
  public int getCategory() {
    return CategoryEnum.getCodeByEnum(CategoryEnum.CAT);
  }
}
